package com.gadgets.busi.bm01.common.event;

import com.gadgets.framework.thread.event.GadgetsThreadTaskEvent;
import com.gadgets.framework.thread.hook.ThreadHook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2022-02-16
 */
@Component(value = "gadgetsBm01TaskFileEvent")
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class GadgetsBm01TaskFileEvent extends GadgetsThreadTaskEvent {
    /**
     * 文件写入路径
     */
    private String taskFilePath;

    /**
     * Instantiates a new Gadgets bm 01 task start event.
     *
     * @param hook the hook
     */
    @Autowired
    public GadgetsBm01TaskFileEvent(ThreadHook<GadgetsBm01TaskFileEvent> hook) {
        setThreadHook(hook);
    }

    public String getTaskFilePath() {
        return taskFilePath;
    }

    public void setTaskFilePath(String taskFilePath) {
        this.taskFilePath = taskFilePath;
    }
}
